package kr.hkit.powerjava.chther05.work;

public class Example9 {
	public static void main(String[] args) {
		int x = 0x0fff;
		int y = 0xfff0;
		
		System.out.printf("%x\n",(x&y));
		System.out.printf("%x\n",(x|y));
		System.out.printf("%x\n",(x^y));
		System.out.printf("%x\n",~x);
		System.out.printf("%x\n",(x<<4));
		System.out.printf("%x\n",(x>>4));
		System.out.printf("%x\n",(-1>>>4));
	}
}
